layui.use([ 'form', 'layer', 'laydate', 'table', 'laytpl' ], function() {
	var form = layui.form, layer = parent.layer === undefined ? layui.layer : top.layer, $ = layui.jquery, laydate = layui.laydate, laytpl = layui.laytpl, table = layui.table;
	var formSelects = layui.formSelects;
	// ==========================添加start==================
	laydate.render({
		elem : '#birthday' // 指定元素
	});
    formSelects.render('roleId');
    	//执行之前把值赋值
    $('button[lay-filter="boot-form-btn"]').click(function(){
    	$('input[name="roleId"]').val(formSelects.value('roleId','valStr'));
    });
    //默认选中
    var  value=$("#roleId").attr("value");
    if(value){
    	 value=value.split(",");
    }
    formSelects.value('roleId',value);
});